package com.heqiang.utils;


import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@NoArgsConstructor
public class Result<T> implements Serializable {
    private static final long serialVersionUID = 262888242269244717L;

    //"响应状态，0为失败，1为成功，其他自定义"
    private Integer code = 1;
    //响应信息
    private String info;
    //响应数据
    private T data;

    //响应是否成功
    private boolean success;

}
